Page({
    data: {
        notices: []
    },
    onLoad() {
        this.getNotice()
            // wx.utils.isTabBarPage()
    },
    async getNotice() {
        const {
            code,
            data: notices
        } = await wx.http.get('/announcement')
        if (code !== 10000) return wx.utils.toast()
        this.setData({
            notices
        })


    }
})